var texGoat = PIXI.Texture.fromImage("goat.png");
var texBunny = PIXI.Texture.fromImage("bunny.png");
var texBullet = PIXI.Texture.fromImage("bullet.png");
var texRodman = PIXI.Texture.fromImage("rodman.png");
var texOlive = PIXI.Texture.fromImage("olive.png");
var texTank = PIXI.Texture.fromImage("tank.png");
var texBomb = PIXI.Texture.fromImage("Bomb.png");
var tex1 = PIXI.Texture.fromImage("1.png");
var tex2 = PIXI.Texture.fromImage("2.png");
var tex3 = PIXI.Texture.fromImage("3.png");
var tex4 = PIXI.Texture.fromImage("4.png");
var tex5 = PIXI.Texture.fromImage("5.png");

//for health bar
var texObox = PIXI.Texture.fromImage("obox.png");
var texIbox = PIXI.Texture.fromImage("ibox.png");
var texHbox = PIXI.Texture.fromImage("hbox.png");

//toJam logo
var logo = PIXI.Texture.fromImage("ToJam8.png");

//icon outline
var iconbox = PIXI.Texture.fromImage("iconbox.png");

function getTexture(texType) {
    if (texType == "goat")
        return texGoat;
    else if (texType == "bunny")
        return texBunny;
    else if (texType == "bullet")
        return texBullet;
    else if (texType == "rodman")
        return texRodman;
    else if (texType == "olive")
        return texOlive;
    else if (texType == "tank")
        return texTank;
    else if (texType == "outerbox")
        return texObox;
    else if (texType == "innerbox")
        return texIbox;
    else if (texType == "healthbar")
        return texHbox;
    else if (texType == "logo")
        return logo;
    else if (texType == "iconbox")
        return iconbox;
    else if (texType == "bomb")
        return texBomb;		
	else if(texType == 1)
		return tex1;
	else if(texType == 2)
		return tex2;
	else if(texType == 3)
		return tex3;
	else if(texType == 4)
		return tex4;
	else if(texType == 5)
		return tex5;
	else if(texType == 0)
		return texBunny;
}